<script setup>
</script>

<template>
    <div class="load" @touchmove.prevent @mousewheel.prevent>
        <div class="load-main">
            <div><img src="@/assets/gif/bilibili.gif"></div>
            <p>
                <slot>正在加载</slot>
            </p>
        </div>
    </div>
</template>

<style scoped lang="less">
.load {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 100;
}

.load-main {
    white-space:nowrap;
    background-color: rgba(0, 0, 0, 0.80);
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 25vw;
    height: 25vw;
    padding: 10px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fefefe;

    div {
        display: flex;
        justify-content: center;
    }

    img {
        width: 60%;
    }
}
</style>
